Conditions | 2 |
Total Lines | 15 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { DynamicModule, Global, Module } from '@nestjs/common'; |
||
21 | static forRoot( |
||
22 | rbac: IStorageRbac, |
||
23 | providers?: any[], |
||
24 | imports?: any[], |
||
25 | ): DynamicModule { |
||
26 | |||
27 | return RBAcModule.forDynamic( |
||
28 | /* tslint:disable */ |
||
29 | class { |
||
30 | async getRbac(): Promise<IStorageRbac> { |
||
31 | return rbac; |
||
32 | }; |
||
33 | }, |
||
34 | providers, |
||
35 | imports, |
||
36 | ); |
||
63 |